namespace CSharpPro._1021;

public class Child
{
    public string Name { get; set; }
    public int Age { get; set; }

    public Child(string name, int age)
    {
        Name = name;
        Age = age;
    }

    public virtual void Play()
    {
        Console.WriteLine($"{Name}（{Age}岁）在开心地玩耍");
    }
}